package com.minelx.scriptbuilder.script.attribute.value;

public class StringValue extends Attribute {

	private final String value;

	public StringValue(String value) {
		this.value = value;
		// FIXME 2020/6/11  wait for me!!!  too weird
		set("length", length());
	}

	@Override
	public String asString() {
		return value;
	}

	public IntValue length() {
		return new IntValue(value.length());
	}
}
